# -*- coding:utf-8 -*-

import sys
from PySide6 import QtCore, QtGui, QtWidgets
from PySide6.QtCore import Qt
from PySide6.QtWidgets import (QApplication, QWidget, QFrame, QLabel,
                             QFormLayout, QHBoxLayout)
from Ui_frame import Ui_Frame


class DemoFrame(QWidget):
    def __init__(self, parent=None):
        super(DemoFrame, self).__init__(parent)

        ui = Ui_Frame()
        ui.setupUi(self)

        # 设置窗口标题
        self.setWindowTitle('实战PySide6: QFrame Demo!')


if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = DemoFrame()
    window.show()
    sys.exit(app.exec())
